package com.preknow.demo3;

public class B extends A{
    //可以调用父类中的构造器
    public B(String name) {
        super(name);
    }
//
    public static void main(String[] args) {
        B b = new B("tom");
    }
}
